/*
 * KeyCode.cpp
 *
 *  Created on: 15 Nov 2013
 *      Author: axel
 */

#include "KeyCode.h"

#include "MainState.h"

KeyCode::KeyCode(void)
{
	createSpecialCodes();
	createOriginalList();
}


KeyCode::~KeyCode(void)
{
}

void KeyCode::createSpecialCodes(){
	//stop paused
	specialcodes[(long) 310000000] =  (int) 1;

	specialcodes[(long) 410000000] =  (int) 1;

	specialcodes[(long) 410000001] =  (int) 1;
}

void KeyCode::createOriginalList(){
	StateMachine* machine = new MainState();
	keycodes[(long) 200000000] = machine;
}

std::map<long, StateMachine*> KeyCode::getHashMap() {
	return keycodes;
}
std::map<long, int> KeyCode::getSpecial() {
	return specialcodes;
}

